/**
 * @ author: 汪孟苹
 */
define(["jquery","bbcare",
    "scprit/followup/app/datatable/datatable.ui.js",
    "scprit/followup/app/courseReservation/addCourse.servers.js"],
    function ($,$bb,$datatableUi,$addCourseServers) {
    var addCourse = {};

    addCourse.init = function(){
        $datatableUi.init({
            "id": "addCourse",
            "options": $addCourseServers.getOptions()
        });  
        $bb.toolbar([{id:"kcyy-addCourse",icon:"",name:"添加课程",callback:function(){
        	$addCourseServers.addCourse();
        }}]);   
    }

    return addCourse;
});